Skip to content

feat(formula): add --set flag and fix bead prefix for convoy formulas#3497

Open
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:feat/formula-set-flag
Open

feat(formula): add --set flag and fix bead prefix for convoy formulas#3497
ckumar1 wants to merge 1 commit intogastownhall:mainfrom
quickserve-ai:feat/formula-set-flag

Conversation

@ckumar1
Copy link
Copy Markdown
Contributor

@ckumar1 ckumar1 commented Apr 2, 2026

Problem

  1. No way to pass input values to convoy formulas. gt formula run only accepted --pr and --files, so convoy formulas with [inputs] variables had no mechanism to receive values.

  2. Bead prefix mismatch in convoy formulas. The convoy formula executor used the wrong prefix when creating beads, causing lookup failures downstream.

Changes

  • Add --set key=value flag to gt formula run for passing arbitrary input values to formulas
  • Fix bead prefix resolution in executeConvoyFormula

Usage

gt formula run my-formula --set reviewer=alice --set priority=high

1 file changed, self-contained.

Two bugs in executeConvoyFormula found by Krieger (qc-dcj1):

1. No mechanism to pass [inputs] values to convoy formulas. gt formula run
   only accepted --pr and --files, so convoy formulas needing free-form
   inputs (design, mol-prd-review) had no working execution path.

   Added --set key=value flag that injects user-defined variables into
   the template context for both execution and dry-run modes.

2. Convoy/leg/synthesis beads were created with hq- prefix (town root)
   but gt sling dispatches to the target rig, which rejects mismatched
   prefixes. Now uses config.GetRigPrefix() to resolve the rig's actual
   beads prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Executed-By: gastown/crew/woodhouse
@github-actions github-actions bot added the status/needs-triage Inbox — we haven't looked at it yet label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/needs-triage Inbox — we haven't looked at it yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant